package geppetto.phraseHMM.phraseExtraction.extractedphrase.writer;


import geppetto.cat.corpus.BilingualCorpus;
import geppetto.phraseHMM.phraseExtraction.extractedphrase.ExtractedPhrasePair;

import java.io.FileNotFoundException;
import java.io.UnsupportedEncodingException;




public class ExtractionTableWriterWithCorpus extends ExtractionTableWriter {

		
	public ExtractionTableWriterWithCorpus(BilingualCorpus corpus,
			String output, String encoding) throws FileNotFoundException,
			UnsupportedEncodingException {
		super(corpus, output, encoding);
	}

	@Override
	public void write(ExtractedPhrasePair epp) {
		_out.println(epp.stringPhraseExtraction(_corpus));			
	}
}
